﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};
	
	var yesnoData = Jxstar.findComboData('yesno');
	var moneytypeData = Jxstar.findComboData('moneytype');
	var ysdeptData = Jxstar.findComboData('ysdept');
	var items = [{
		height: '97%',
		width: '97%',
		border: false,
		layout: 'form',
		style: 'padding:10px;',
		items: [{
			anchor:'100%',
			border: false,
			layout:'column',
			autoHeight:true,
			items:[{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textfield', fieldLabel:'项目编号', name:'v_process__project_code', readOnly:true, anchor:'100%', maxLength:20},
					{xtype:'textfield', fieldLabel:'实施单位', name:'v_process__dept_name', readOnly:true, anchor:'100%', maxLength:50},
					{xtype:'datefield', fieldLabel:'计划论证完成日期', name:'v_process__date_projectlz', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'计划招投标完成日期', name:'v_process__date_ztb', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'计划合同签订日期', name:'v_process__date_contract', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'计划施工完成日期', name:'v_process__date_projectend', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'计划内部验收日期', name:'v_process__date_check', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'计划单项验收日期', name:'v_process__date_checkone', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'计划竣工验收日期', name:'v_process__date_checkend', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'计划财务决算日期', name:'v_process__date_moneycheck', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'combo', fieldLabel:'是否延期', name:'v_process__is_defer', defaultval:'0',
						anchor:'100%', readOnly:true, editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: yesnoData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: yesnoData[0][0]},
					{xtype:'hidden', fieldLabel:'部门ID', name:'v_process__dept_id', anchor:'100%'}
				]
			},{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textfield', fieldLabel:'项目名称', name:'v_process__project_name', readOnly:true, anchor:'100%', maxLength:100},
					{xtype:'combo', fieldLabel:'项目类型', name:'v_process__money_type',
						anchor:'100%', readOnly:true, editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: moneytypeData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: moneytypeData[0][0]},
					{xtype:'datefield', fieldLabel:'实际论证完成日期', name:'v_process__date_lz', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'实际招投标完成日期', name:'v_process__date_sjztb', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'实际合同签订日期', name:'v_process__date_ht', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'实际实施完成日期', name:'v_process__date_done', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'实际内部验收日期', name:'v_process__date_yans', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'实际竣工验收日期', name:'v_process__date_sjjg', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'datefield', fieldLabel:'实际财务决算日期', name:'v_process__date_jues', format:'Y-m', anchor:'100%', readOnly:true},
					{xtype:'combo', fieldLabel:'验收单位', name:'v_process__ys_dept',
						anchor:'100%', readOnly:true, editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: ysdeptData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: ysdeptData[0][0]},
					{xtype:'hidden', fieldLabel:'主键', name:'v_process__process_id', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'项目ID', name:'v_process__project_id', anchor:'100%'}
				]
			}
			]
		}]
	}];
	
	config.param = {
		items: items,
		funid: 'project_process_sit'
	};

	
	
	return new Jxstar.FormNode(config);
}